package problem;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class farmerProblemTest {

	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void testSolve() {
		
		farmerProblem ins = new farmerProblem();
		ins.solve();
	}

	@Test
	public void testConstraint() {
		
		farmerProblem ins = new farmerProblem();
		assertTrue(ins.Constraint(11));		//1011
		assertFalse(ins.Constraint(5));		//0101
		assertFalse(ins.Constraint(10));	//1010
		assertFalse(ins.Constraint(3));		//0011
	}

}
